/*
 * Main.fx
 *
 * Created on 4/10/2010, 07:00:38 PM
 */
package restaurante;

import restaurante.PanelBandeja;

/**
 * @author Camilo
 * @version $Id: Main.fx 65 2010-10-06 19:46:01Z lopezandres2002@hotmail.com $
 */
public class Main
{

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:main
    def __layoutInfo_panelOpciones: javafx.scene.layout.LayoutInfo = javafx.scene.layout.LayoutInfo {
        width: 100.0
        height: 768.0
    }
    public-read def panelOpciones: javafx.scene.layout.Panel = javafx.scene.layout.Panel {
        managed: false
        layoutX: 0.0
        layoutY: 0.0
        layoutInfo: __layoutInfo_panelOpciones
    }
    
    def __layoutInfo_panelMenu: javafx.scene.layout.LayoutInfo = javafx.scene.layout.LayoutInfo {
        width: 624.0
        height: 768.0
    }
    public-read def panelMenu: javafx.scene.layout.Panel = javafx.scene.layout.Panel {
        layoutX: 100.0
        layoutY: 0.0
        layoutInfo: __layoutInfo_panelMenu
    }
    
    def __layoutInfo_panelBandeja: javafx.scene.layout.LayoutInfo = javafx.scene.layout.LayoutInfo {
        width: 300.0
        height: 768.0
    }
    public-read def panelBandeja: javafx.scene.layout.Panel = javafx.scene.layout.Panel {
        layoutX: 724.0
        layoutY: 0.0
        layoutInfo: __layoutInfo_panelBandeja
    }
    
    public-read def scene: javafx.scene.Scene = javafx.scene.Scene {
        width: 1024.0
        height: 768.0
        content: getDesignRootNodes ()
    }
    
    public-read def currentState: org.netbeans.javafx.design.DesignState = org.netbeans.javafx.design.DesignState {
    }
    
    public function getDesignRootNodes (): javafx.scene.Node[] {
        [ panelOpciones, panelMenu, panelBandeja, ]
    }
    
    public function getDesignScene (): javafx.scene.Scene {
        scene
    }
    // </editor-fold>//GEN-END:main

    /**
     * En esta parte se sincronizan los fragmentos con los paneles creados en Main.fx
     */
    def fragmentoOpciones = PanelOpciones {}
    def fragmentoMenu = PanelMenu {}
    def fragmentoBandeja = PanelBandeja {}

    init
    {
        insert fragmentoOpciones.panel into panelOpciones.content;
        insert fragmentoMenu.panel into panelMenu.content;
        insert fragmentoBandeja.panel into panelBandeja.content;
    }

}




function run (): Void {
    var design = Main {};

    javafx.stage.Stage {
        title: "Main"
        scene: design.getDesignScene ()
    }
}


